$(function(){	
	$("#datepicker").datepicker({
		dateFormat:'yy-mm-dd',
		onSelect:function(date,inst){
			dateSelect(date,inst);
		}
		
	});
});
function dateSelect(date,inst){
	window.showModalDialog("journal/journal!load?bean.createDate="+date,'','dialogWidth:800px;dialogHeight:600px;center:yes');
}